import QtQuick  // 可以不用写版本号, 自动加载最高版本的模块
import QtQuick.Window

Rectangle {
    // name of this element
    id:root
    // properties: <name>: <value>
    width: 220; height: 260

    // color property
    color: "#4A4A4A" // RGB

    // Declare a nested element (child of root)
    Image {
        id: image

        // reference the parent
        x:(root.width - width) / 2; y:40
        source: "images/pinwheel.png"
    }

    // Another child of root
    Text {
        // un-named element
        color: 'white'
        /*x:(root.width - width) / 2; */y: image.y + image.height + 20
        horizontalAlignment: Text.AlignHCenter
        width: root.width
        text: "大风车。。转呀转呀"
    }
}
